﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using Autodesk.Revit.DB.Mechanical;

namespace YArchitech.Revit.Electric
{
	public static class RevitSpaceEx
	{
		public static bool IsHasBoundary(this Space revitSpace)
		{
			IList<IList<BoundarySegment>> boundarySegments = revitSpace.GetBoundarySegments(new SpatialElementBoundaryOptions());
			return boundarySegments != null && boundarySegments.Count > 0;
		}
	}
}
